package com.phcx.corporate.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Random;

/*
 * @Author: zmh
 * @Date: 2023/05/18/17:05
 * @Description:
 */
public class TableUtil {

    public static String getID(){
        String currentTime = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS"));
        Random random = new Random();
        int randomNumber = random.nextInt(9000000) + 1000000;
        return currentTime+randomNumber;
    }

    public static String getLogTime(){
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss SSS"));
    }
}
